package in.espirit.tracer.model;

public class User {
	private String userName, password, displayName;
	private String email, emailSecond, phone, chatId, web;
	private String team, status, whoAmI, skills, passion;
	
	private String role;
	
	private int approvalStatus;
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getEmailSecond() {
		return emailSecond;
	}
	public void setEmailSecond(String emailSecond) {
		this.emailSecond = emailSecond;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getChatId() {
		return chatId;
	}
	public void setChatId(String chatId) {
		this.chatId = chatId;
	}
	public String getWeb() {
		return web;
	}
	public void setWeb(String web) {
		this.web = web;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getWhoAmI() {
		return whoAmI;
	}
	public void setWhoAmI(String whoAmI) {
		this.whoAmI = whoAmI;
	}
	public String getSkills() {
		return skills;
	}
	public void setSkills(String skills) {
		this.skills = skills;
	}
	public String getPassion() {
		return passion;
	}
	public void setPassion(String passion) {
		this.passion = passion;
	}
	public void setTeam(String team) {
		this.team = team;
	}
	public String getTeam() {
		if (team == null) return "No Team Specified";
		return team;
	}
	public int getApprovalStatus() {
		return approvalStatus;
	}
	public void setApprovalStatus(int approvalStatus) {
		this.approvalStatus = approvalStatus;
	}	
	@Override
	public boolean equals(Object obj) {			
		return this.userName.equalsIgnoreCase(((User)obj).userName);
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getRole() {
		return role;
	}
}
